local skel = fk.CreateSkill {
  name = "lb__qianlin",
  tags = { Skill.Compulsory },
  max_branches_use_time = {
    ["round"] = {
      [Player.HistoryRound] = 1
    },
  }
}

Fk:loadTranslationTable {
  ["lb__qianlin"] = "潜鳞",
  [":lb__qianlin"] = "<b>锁定技</b>，每轮限一次，当你成为红色牌的目标后，若你本轮未发动过<a href=':lb__panyao'><font color='red'>〖蟠逍〗</font></a>，你摸两张牌，然后横置自己。",

  ["$lb__qianlin1"] = "我无意挑起争端。",
  ["$lb__qianlin2"] = "争斗…并无意义。",
}

skel:addEffect(fk.TargetConfirmed, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and target == player and data.card.color == Card.Red 
    and player:usedSkillTimes("lb__panyao", Player.HistoryRound) == 0
    and player:usedSkillTimes(skel.name, Player.HistoryRound, "round") == 0
  end,
  on_use = function(self, event, target, player, data)
    player:addSkillBranchUseHistory(skel.name, "round")
    player:drawCards(2, skel.name)
    if player:isAlive() and not player.chained then
      player:setChainState(true)
    end
  end,
})


return skel
